Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(stdlibs): add package html #2802

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

Villaquiranm
Copy link
Contributor

related to #1267

  • Implement html golang package.
  • Added a silly implementation of strings.Replacer:
    Maybe we should optimize it ? I did not wanted to do something complex as this is not the main point of this pull request
Contributors' checklist...
  • Added new tests, or not needed, or not feasible
  • Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
  • Updated the official documentation or not needed
  • No breaking changes were made, or a BREAKING CHANGE: xxx message was included in the description
  • Added references to related issues and PRs
  • Provided any useful hints for running manual tests
  • Added new benchmarks to generated graphs, if any. More info here.

@github-actions github-actions bot added the 📦 🤖 gnovm Issues or PRs gnovm related label Sep 15, 2024
Copy link

codecov bot commented Sep 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.96%. Comparing base (a2b4d4b) to head (7b96ed6).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2802   +/-   ##
=======================================
  Coverage   60.95%   60.96%           
=======================================
  Files         564      564           
  Lines       75273    75273           
=======================================
+ Hits        45885    45887    +2     
+ Misses      26018    26017    -1     
+ Partials     3370     3369    -1     
Flag Coverage Δ
contribs/gnodev 61.46% <ø> (ø)
contribs/gnofaucet 15.31% <ø> (+0.85%) ⬆️
gno.land 67.92% <ø> (ø)
gnovm 65.77% <ø> (ø)
misc/genstd 80.54% <ø> (ø)
misc/logos 20.23% <ø> (ø)
tm2 62.06% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@thehowl thehowl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see other changes concern removing sync.Once.

LGTM after we fixup strings.Replacer in another PR.

Copy link
Member

@moul moul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we will want to remove this, but it looks good to add it while we're still exploring. lgtm.

@thehowl thehowl changed the title feat: port html go internal package feat(stdlibs): add package html Sep 20, 2024
thehowl pushed a commit that referenced this pull request Oct 2, 2024
<!-- please provide a detailed description of the changes made in this
pull request. -->
prerequisite of #2802 

This pull request ports the files:
- replace.go
- replace_test.go

from the Golang standard library.

I added some tags on the code with the hope it will help to review the
code and to launch discussion if neccessary.
I could after remove these changes
```go
// Custom code: XXX_Some_Explanation
( code not present on the original go file)
.
.
.
// End of custom code
```

 

<details><summary>Contributors' checklist...</summary>

- [ ] Added new tests, or not needed, or not feasible
- [ ] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [ ] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [ ] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
- [ ] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>
@Villaquiranm
Copy link
Contributor Author

I see other changes concern removing sync.Once.

LGTM after we fixup strings.Replacer in another PR.

@thehowl rebased :)

Copy link
Member

@thehowl thehowl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👏

@thehowl thehowl merged commit 47118ef into gnolang:master Oct 3, 2024
120 checks passed
@omarsy omarsy deleted the feat/implement-html-package branch October 3, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 🤖 gnovm Issues or PRs gnovm related
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants